home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol F-12 / (Vol F-12) Jun 02 2012.iso / Screensaver / screensaver_installer.exe / ____swmx / scripts / frame_1 / DoAction.as < prev   
Text File  |  2004-10-21  |  892b  |  31 lines

  1. _global.ScreenweaverScript = function()
  2. {
  3.    this.init();
  4. };
  5. ScreenweaverScript.prototype.init = function()
  6. {
  7. };
  8. ScreenweaverScript.prototype.execute = function(script, callback, scope)
  9. {
  10.    args = {script:script};
  11.    swInterface.callMethod("runScript",args,callback,false,scope);
  12. };
  13. ScreenweaverScript.prototype.run = function(script, callback, scope)
  14. {
  15.    swScript.execute(script,callback,scope);
  16. };
  17. ScreenweaverScript.prototype.executeFile = function(file, callback, scope)
  18. {
  19.    args = {file:file};
  20.    swInterface.callMethod("runScriptFile",args,callback,false,scope);
  21. };
  22. ScreenweaverScript.prototype.runFile = function(file, callback, scope)
  23. {
  24.    swScript.executeFile(file,callback,scope);
  25. };
  26. ScreenweaverScript.prototype.send = function(data, callback, scope)
  27. {
  28.    args = {data:data};
  29.    swInterface.callMethod("sendToScript",args,callback,false,scope);
  30. };
  31.